package com.bawei.module_mine.ui

import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView

class AddressItemDecoration(private val space: Int) : RecyclerView.ItemDecoration() {
    override fun getItemOffsets(
        outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State
    ) {
        outRect.top = space
        outRect.bottom = space
        if (parent.getChildAdapterPosition(view) == 0) {
            outRect.top = space * 2
        }
    }
} 